class XinHeShopInfo {
  static const name = '平台自营官方店';
}

enum  PayScene {
    fromGoodsCartOrder,///购物车
    fromGoodsDetailDirect,///直接购买
    fromGoodsOrderListItem,///订单列表的item
    fromGoodsOrdersListItemDetail,///订单列表item的详情
    fromAdoptOrder,///认养购物车
    fromAdoptRecordsList,///认养记录
    none
}

enum PayMethod {
    yue('BALANCE'),///余额
    alipay('ZHIFUBAO_PAY'),//支付宝
    offline('OFFLINE'),//线下支付
    weixinpay('WEIXIN_PAY');//微信支付

    final String val;
    const PayMethod(this.val);
}

enum TradeType {

    ADOPTING_OIL_TEA_TREES("认养油茶树"),
    ADOPTED_TREE("认养油茶树赠送"),
    ADDITIONAL_GIFT_YUN_CHA_SEED("额外赠送云茶籽"),
    ADOPTED_OIL_CARD("认养油茶树赠送"),
    ADOPTED_OIL_CARD_EXCHANGE_TEA_OIL("兑换茶油"),
    ADOPTED_CONSUMER_GOLD_RED_ENVELOPE("认养油茶树赠送"),

    SYSTEM_THAW_YUN_CHA_SEED("系统解冻"),
    SYSTEM_THAW_CONSUMER_GOLD_RED_ENVELOPE("系统自动领取"),
    TWO_THAW_YUN_CHA_SEED("直推解冻云茶籽"),
    THREE_THAW_YUN_CHA_SEED("间推解冻云茶籽"),

    TWO_THAW_REWARD("直推奖励"),
    THREE_THAW_REWARD("间推奖励"),
    ADDITIONAL_REWARDS("额外奖励"),
    FOUNDER_REWARDS("推荐创始人获得奖励"),
    RECOMMEND_FOUNDER_THAWING("推荐创始人解冻云茶籽"),
    ADDITIONAL_YUN_CHA_SEED("额外解冻云茶籽");

    final String val;
    const TradeType(this.val);
}


class XinHeGetStrClass {

    static   getTradeString(String type) {

        var str = '';
        switch(type){
            case "ADOPTING_OIL_TEA_TREES":
                str = TradeType.ADOPTING_OIL_TEA_TREES.val;
                break;
            case "ADOPTED_TREE":
                str = TradeType.ADOPTED_TREE.val;
                break;
            case "ADDITIONAL_GIFT_YUN_CHA_SEED":
                str = TradeType.ADDITIONAL_GIFT_YUN_CHA_SEED.val;
                break;

            case "ADOPTED_OIL_CARD":
                str = TradeType.ADOPTED_OIL_CARD.val;
                break;
            case "ADOPTED_OIL_CARD_EXCHANGE_TEA_OIL":
                str = TradeType.ADOPTED_OIL_CARD_EXCHANGE_TEA_OIL.val;
                break;
            case "SYSTEM_THAW_YUN_CHA_SEED":
                str = TradeType.SYSTEM_THAW_YUN_CHA_SEED.val;
                break;
            case "ADOPTED_CONSUMER_GOLD_RED_ENVELOPE":
                str = TradeType.ADOPTED_CONSUMER_GOLD_RED_ENVELOPE.val;
                break;
            case "SYSTEM_THAW_CONSUMER_GOLD_RED_ENVELOPE":
                str = TradeType.SYSTEM_THAW_CONSUMER_GOLD_RED_ENVELOPE.val;
                break;
            case "TWO_THAW_YUN_CHA_SEED":
                str = TradeType.TWO_THAW_YUN_CHA_SEED.val;
                break;
            case "THREE_THAW_YUN_CHA_SEED":
                str = TradeType.THREE_THAW_YUN_CHA_SEED.val;
                break;

            case "TWO_THAW_REWARD":
                str = TradeType.TWO_THAW_REWARD.val;
                break;
            case "THREE_THAW_REWARD":
                str = TradeType.THREE_THAW_REWARD.val;
                break;
            case "ADDITIONAL_REWARDS":
                str = TradeType.ADDITIONAL_REWARDS.val;
                break;
            case "FOUNDER_REWARDS":
                str = TradeType.FOUNDER_REWARDS.val;
                break;
            case "RECOMMEND_FOUNDER_THAWING":
                str = TradeType.RECOMMEND_FOUNDER_THAWING.val;
                break;
            case "ADDITIONAL_YUN_CHA_SEED":
                str = TradeType.ADDITIONAL_YUN_CHA_SEED.val;
                break;
        }


        return str;


    }


}